{% extends "bets/base_site.html" %}

{% block center-content %}
    <div class="well">
      <h3 class="muted">{{ player.name }} profile</h3>
      <ul class="nav nav-list" style="font-size: 18px;">	        
	        <li>
	           Name:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {{ player.name }}
	        </li>
	      	<hr class="dotted">
	      	
	      	<div style="margin-top: 10px;">
		        <li>
		           Team:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="{% url 'bets:team_profile_view' player.team.game.name player.team.id %}">{{ player.team.name }}</a>
		        </li>
		      	<hr class="dotted">	
	      	</div>  	      	
	      	
	      	<div style="margin-top: 10px;">
		      	<li>
		           Game:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {{ player.team.game.name }}
		        </li>
		      	<hr class="dotted">
	      	</div> 
	      	
	      	<div style="margin-top: 10px;">
		        <li>
		           Rating:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {{ player.rating }}
		        </li>
		      	<hr class="dotted">	
	      	</div>	
	      	
	      	<div style="margin-top: 10px;">
		        <li>
		           {% if tour_first %}
		           	Tournaments:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="{% url 'bets:bet_view' player.team.game.name tour_first.id %}">{{ tour_first.name }}</a>
		           {% else %}
		           	Tournaments:
		           {% endif %}        
		        </li>
		      	<hr class="dotted">	
	      	</div>
	      	
	      	{% if tour_first %}
		      	{% for t in tour %}
			      	<div style="margin-top: 10px;">
				        <li>
				           &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="{% url 'bets:bet_view' player.team.game.name t.id %}">{{ t.name }}</a>
				        </li>
				      	<hr class="dotted">	
			      	</div>
		      	{% endfor %}
			{% endif %}		      			      			      	
      </ul>
      <hr>
    <p class="muted">
		<span class="pull-right">
		  <i class="icon-chevron-up"></i>
		  <a href="{% url 'bets:game_view' %}" title="Back">Back to home</a>
		</span>   
	</p>
	<hr>
    </div>
{% endblock %}